package org.example.group.controller;

import org.example.group.service.GroupService;
import org.example.model.vo.h5.GroupVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("group")
public class GroupController {
    @Autowired
    private GroupService groupService;
    @RequestMapping("/list")
    public List<GroupVo> list(){
        return groupService.selectAll();
    }
}
